package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DELL
 * Date: 2023-07-25
 * Time: 10:46
 */
public class TestStack {
    public static void main(String[] args) {
        MyStack2 myStack2 = new MyStack2();

        myStack2.push(1);
        myStack2.push(2);
        myStack2.push(3);
        myStack2.push(4);

        System.out.println(myStack2.pop());
        System.out.println(myStack2.pop());
        System.out.println(myStack2.pop());
        System.out.println(myStack2.peek());
    }
}
